Skip to content

Conversation

@SergeyNoskov2022
Copy link

No description provided.

}
public void sumProducts() {
while (true) {
System.out.println("Введите название товара:");

This comment was marked as resolved.

}

public void divTotalPrice() {
int lastNum = (int) totalPrice % 10;

This comment was marked as resolved.

rub = "рублей";
} else if (lastNum > 1 && lastNum < 5) {
rub = "рубля";
} else if (totalPrice % 10 == 1) {

This comment was marked as resolved.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Спасибо за критику! Исправил, прошу проверить.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants